package com.sugar.real.estate.module.business.service.userbuildingconsult;

import com.sugar.real.estate.framework.common.pojo.PageResult;
import com.sugar.real.estate.module.business.controller.admin.userbuildingconsult.vo.UserBuildingConsultPageReqVO;
import com.sugar.real.estate.module.business.controller.admin.userbuildingconsult.vo.UserBuildingConsultRespVO;
import com.sugar.real.estate.module.business.controller.app.userbuildingconsult.vo.UserBuildingConsultSaveReqVO;
import com.sugar.real.estate.module.business.dal.dataobject.userbuildingconsult.UserBuildingConsultDO;

import javax.validation.Valid;
import java.util.List;

/**
 * 用户楼盘咨询 Service 接口
 *
 * @author Ysugar
 */
public interface UserBuildingConsultService {

    /**
     * 创建用户楼盘咨询
     *
     * @param createReqVO 创建信息
     */
    void createUserBuildingConsult(@Valid UserBuildingConsultSaveReqVO createReqVO, Long userId);

    /**
     * 删除用户楼盘咨询
     *
     * @param id 编号
     */
    void deleteUserBuildingConsult(Long id);

    /**
    * 批量删除用户楼盘咨询
    *
    * @param ids 编号
    */
    void deleteUserBuildingConsultListByIds(List<Long> ids);

    /**
     * 获得用户楼盘咨询
     *
     * @param id 编号
     * @return 用户楼盘咨询
     */
    UserBuildingConsultDO getUserBuildingConsult(Long id);

    /**
     * 获得用户楼盘咨询分页
     *
     * @param pageReqVO 分页查询
     * @return 用户楼盘咨询分页
     */
    PageResult<UserBuildingConsultRespVO> getUserBuildingConsultPage(UserBuildingConsultPageReqVO pageReqVO);

}